<template>
  <div>
    <ul>
      <li v-for="(item,index) in arr" :key="index">
        {{index}}---{{item}}
        
      </li>
      <li>
         <li v-for="(item,index) in objArr" :key="index">
       姓名:{{item.name}}
       年龄:{{item.age}}
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'VuecliTwoApp',

  data() {
    return {
      arr:[10,20,30,40,50],
      objArr:[
        {name:'李四',age:18},
         {name:'王五',age:19},
          {name:'陈六',age:20},
           {name:'刘七',age:21},

      ]
    };
  },

  mounted() {
    
  },

  methods: {
    
  },
};
</script>

<style lang="scss" scoped>

</style>